
<h1>Admin</h1>


<div class="form" align="left">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'create-option-form',
	'enableAjaxValidation'=>false,
                  
)); ?>
                
                <div class="row">
                <table width="30%">
                    <tr><td><?php echo '<b>Modules Option</b>'?></td><td></td></tr>
                <?php foreach($modules as $row){?>
                 
                  <tr> <td width ="11%"><?php echo CHtml::label($row->option_name,$row->option_name); ?></td>
                      <td width="89%" ><?php  echo CHtml::checkBox("option[$row->id]",$row->option_value,array('uncheckValue'=>'0')); ?></td></tr>
    
                <?php }?>
                  <tr><td><?php echo '<b>Themes Option</b>'?></td><td></td></tr>
                <?php foreach($theme as $row){?>
                 
                  <tr> 
                      <td width ="11%"><?php echo CHtml::label($row->option_name,$row->option_name); ?></td>
                      <td width="89%" ><?php  echo CHtml::textField("option[$row->id]",$row->option_value,array('size'=>50)); ?></td></tr>
                  <?php }?>
                </table>
                    </div>
                    
    
    <?php echo CHtml::submitButton($label='Save Option');?>
<?php $this->endWidget(); ?>
</div>
